import request from '@/utils/request'
export default {
  //1 添加轮播图
  addBanner(data) {
    return request({
      url: '/educms/servicecms/banner/save',
      method: 'post',
      data
    })
  },
  //分页查询所有轮播图
  getBannerList(data) {
    return request({
      url: `/educms/servicecms/banner/getBannerListPage`,
      method: 'post',
      data
    })
  },
  //根据id查询轮播图信息
  getBannerById(id) {
    return request({
      url: '/educms/servicecms/banner/get/' + id,
      method: 'get'
    })
  },
  //根据id修改轮播图
  updateBanner(data) {
    return request({
      url: '/educms/servicecms/banner/update',
      method: 'put',
      data
    })
  },
  removeBannerById(id) {
    return request({
      url: `/educms/servicecms/banner/remove/${id}`,
      method: 'delete'
    })
  },
}